﻿using System;
using System.Collections.Generic;
using System.Text;
using Kugar.UI.Web.AdminLTE.Models;
using Microsoft.AspNetCore.Mvc;

namespace Kugar.UI.Web.AdminLTE.Controllers
{
    /// <summary>
    /// 权限设置
    /// </summary>
    public class AdminRoleController:WebUIBaseController
    {
        [HttpGet, Route("AdminCore/AdminRole/AdminUserAuthorityList")]
        public IActionResult AdminUserAuthorityList()
        {
            return View();
        }

        [HttpGet, Route("AdminCore/AdminRole/AdminUseAuthorityDetail")]
        public IActionResult AdminUseAuthorityDetail()
        {
            var model = new Model_AdminUserAuthorityDetail();

            model.Groups = new[]
                           {
                               new AuthorityGroup()
                               {
                                   GroupID = "1111111",
                                   GroupTitle = "11111111111",
                                   Items = new[]
                                           {
                                               new AuthorityInfoItem("1111_1111", "1111_1111"),
                                               new AuthorityInfoItem("1111_1112","1111_1112"),
                                               new AuthorityInfoItem("1111_1113","1111_1113"),
                                               new AuthorityInfoItem("1111_1114","1111_1114"),
                                               new AuthorityInfoItem("1111_1115","1111_1115"),

                                           }
                               },
                               new AuthorityGroup()
                               {
                                   GroupID = "1111111",
                                   GroupTitle = "11111111111",
                                   Items = new[]
                                           {
                                               new AuthorityInfoItem("1111_1111", "1111_1111"),
                                               new AuthorityInfoItem("1111_1112","1111_1112"),
                                               new AuthorityInfoItem("1111_1113","1111_1113"),
                                               new AuthorityInfoItem("1111_1114","1111_1114"),
                                               new AuthorityInfoItem("1111_1115","1111_1115"),

                                           }
                               },
                               new AuthorityGroup()
                               {
                                   GroupID = "1111111",
                                   GroupTitle = "11111111111",
                                   Items = new[]
                                           {
                                               new AuthorityInfoItem("1111_1111", "1111_1111"),
                                               new AuthorityInfoItem("1111_1112","1111_1112"),
                                               new AuthorityInfoItem("1111_1113","1111_1113"),
                                               new AuthorityInfoItem("1111_1114","1111_1114"),
                                               new AuthorityInfoItem("1111_1115","1111_1115"),

                                           }
                               },
                               new AuthorityGroup()
                               {
                                   GroupID = "1111111",
                                   GroupTitle = "11111111111",
                                   Items = new[]
                                           {
                                               new AuthorityInfoItem("1111_1111", "1111_1111"),
                                               new AuthorityInfoItem("1111_1112","1111_1112"),
                                               new AuthorityInfoItem("1111_1113","1111_1113"),
                                               new AuthorityInfoItem("1111_1114","1111_1114"),
                                               new AuthorityInfoItem("1111_1115","1111_1115"),

                                           }
                               },
                           };

            return View("~/Views/AdminUseAuthorityDetail.cshtml",model);
        }

        [HttpPost,ActionName("AdminUseAuthorityDetail"),Route("AdminCore/AdminRole/AdminUseAuthorityDetail")]
        public IActionResult AdminUseAuthorityDetailPost()
        {
            return View();
        }

        [HttpGet, Route("AdminCore/AdminRole/AdminRoleList")]
        public IActionResult AdminRoleList()
        {
            return View();
        }

        [HttpGet, ActionName("AdminRoleDetail"), Route("AdminCore/AdminRole/AdminRoleDetail")]
        public IActionResult AdminRoleDetail()
        {
            return View();
        }

        [HttpPost, ActionName("AdminRoleDetail"), Route("AdminCore/AdminRole/AdminRoleDetail")]
        public IActionResult AdminRoleDetailPost()
        {
            return View();
        }
    }
}
